<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<!-- 修饰符 lazy 回车或失去焦点生效-->
			<input type="text" name="" id="" value="" v-model.lazy="message"/>
			<h2>{{message}}</h2>
			
			<!-- 数字类型 -->
			<input type="number" name="" id="" value="" v-model.number="age"/>
			<h2>{{typeof age}}</h2>
			
			<!-- 去除空格 -->
			<input type="text" name="" id="" value="" v-model.trim="name"/>
			<h2>您输入的名字{{name}}</h2>
		</div>
	</body>
	<script type="text/javascript">
		const app = new Vue({
			el:'#app',
			data:{
				message:'你好',
				age:18,
				name:''
			}
		})
	</script>
</html>
